package net.sxnic.ugr.user.action;

import net.sxnic.ugr.UgrActionSupport;
import net.sxnic.ugr.context.AppContext;
import net.sxnic.ugr.user.User;
import net.sxnic.ugr.user.UserManager;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * 
 * Comments: 修改用户基本信息
 * <p>
 * Author：孙宇飞
 * <p>
 * Create Date：2010-5-4
 * <p>
 * 
 * 
 */
@SuppressWarnings("serial")
public class EditUserInfo extends UgrActionSupport {

	@Autowired
	private UserManager userManager;
	
	private User user;

	public String execute() throws Exception {
		user = userManager.getUserByUsername(AppContext.getUserName(request));
		
		return SUCCESS;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
